package com.neuedu.yyzx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 外出登记
 * </p>
 *
 * @author dya
 * @since 2021-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Outgoing implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "OUTGOING_ID", type = IdType.AUTO)
    private Integer outgoingId;

    /**
     * 客户姓名
     */
    @TableField("CUSTOMER_NAME")
    private String customerName;

    /**
     * 客户id
     */
    @TableField("CUSTOMER_ID")
    private String customerId;

    /**
     * 性别
     */
    @TableField("CUSTOMER_GENDER")
    private String customerGender;

    /**
     * 年龄
     */
    @TableField("CUSTOMER_AGE")
    private Integer customerAge;

    /**
     * 档案编号
     */
    @TableField("RECORD_ID")
    private String recordId;

    /**
     * 外出原因
     */
    @TableField("OUTGOING_CAUSE")
    private String outgoingCause;

    /**
     * 外出时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField("OUTGOING_DATE")
    private LocalDateTime outgoingDate;

    /**
     * 预计回来时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField("EXPECTED_RETURN_DATE")
    private LocalDateTime expectedReturnDate;

    /**
     * 实际回来时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField("ACTUAL_RETURN_DATE")
    private LocalDateTime actualReturnDate;

    /**
     * 陪同人
     */
    @TableField("ACCOMPANIED_PERSON")
    private String accompaniedPerson;

    /**
     * 与老人关系
     */
    @TableField("RELATION")
    private String relation;

    /**
     * 陪同人电话
     */
    @TableField("ACC_TELEPHONE")
    private String accTelephone;

    /**
     * 审批状态
     */
    @TableField("STATUS")
    private String status;

    /**
     * 审批人
     */
    @TableField("AUDIT_PERSON")
    private String auditPerson;

    /**
     * 审批时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField("AUDIT_DATE")
    private LocalDateTime auditDate;

    @TableField("IS_DELETED")
    private Integer isDeleted;


}
